﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfTravelSearch.aspx.cs" Inherits="msBsc.WebUi.wMall.Public.wfTravelSearch" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>资讯搜索</title>
    <link href="/jqPlugin/SelectSimu/css/base.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Public/sTravel.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/pagination.css" rel="stylesheet" />
    <style>
        #divPage a, #divPage span {
            color: #333;
        }
    </style>
</head>
<body>
    <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
    <div class="viewPC">
        <input type="hidden" id="key" value="" />
        <input type="hidden" id="pageIndex" value="1" />
        <div class="searchResults">搜索 <span class="s_condition" id="s_condition"></span> 共 <span class="s_number" id="s_number">0</span> 条商品信息</div>
        <ul class="travel_lit" id="travel_list">
         <%--   <li>
                <a class="travelC" href="http://www.dijieke.com/wp_TravelScenicInfo.htm?scenicId=008700D8-0F46-4541-87A5-402DE43219B8" target="_blank">
                    <img src="http://www.dijieke.com/UpLoad/scenic/1422253857_162.jpg?1422253859983 240x198img.jpg" title="快乐猩猩树上穿越公园" />
                    <div class="classicInfo" data-value="008700D8-0F46-4541-87A5-402DE43219B8">快乐猩猩树上穿越公园</div>
                </a>
            </li>
            <li>
                <a class="travelC" href="http://www.dijieke.com/wp_TravelScenicInfo.htm?scenicId=008700D8-0F46-4541-87A5-402DE43219B8" target="_blank">
                    <img src="http://www.dijieke.com/UpLoad/scenic/1422253857_162.jpg?1422253859983 240x198img.jpg" title="快乐猩猩树上穿越公园" />
                    <div class="classicInfo" data-value="008700D8-0F46-4541-87A5-402DE43219B8">快乐猩猩树上穿越公园</div>
                </a>
            </li>
            <li>
                <a class="travelC" href="http://www.dijieke.com/wp_TravelScenicInfo.htm?scenicId=008700D8-0F46-4541-87A5-402DE43219B8" target="_blank">
                    <img src="http://www.dijieke.com/UpLoad/scenic/1422253857_162.jpg?1422253859983 240x198img.jpg" title="快乐猩猩树上穿越公园" />
                    <div class="classicInfo" data-value="008700D8-0F46-4541-87A5-402DE43219B8">快乐猩猩树上穿越公园</div>
                </a>
            </li>
            <li>
                <a class="travelC" href="http://www.dijieke.com/wp_TravelScenicInfo.htm?scenicId=008700D8-0F46-4541-87A5-402DE43219B8" target="_blank">
                    <img src="http://www.dijieke.com/UpLoad/scenic/1422253857_162.jpg?1422253859983 240x198img.jpg" title="快乐猩猩树上穿越公园" />
                    <div class="classicInfo" data-value="008700D8-0F46-4541-87A5-402DE43219B8">快乐猩猩树上穿越公园</div>
                </a>
            </li>
            <li>
                <a class="travelC" href="http://www.dijieke.com/wp_TravelScenicInfo.htm?scenicId=008700D8-0F46-4541-87A5-402DE43219B8" target="_blank">
                    <img src="http://www.dijieke.com/UpLoad/scenic/1422253857_162.jpg?1422253859983 240x198img.jpg" title="快乐猩猩树上穿越公园" />
                    <div class="classicInfo" data-value="008700D8-0F46-4541-87A5-402DE43219B8">快乐猩猩树上穿越公园</div>
                </a>
            </li>
            <li>
                <a class="travelC" href="http://www.dijieke.com/wp_TravelScenicInfo.htm?scenicId=008700D8-0F46-4541-87A5-402DE43219B8" target="_blank">
                    <img src="http://www.dijieke.com/UpLoad/scenic/1422253857_162.jpg?1422253859983 240x198img.jpg" title="快乐猩猩树上穿越公园" />
                    <div class="classicInfo" data-value="008700D8-0F46-4541-87A5-402DE43219B8">快乐猩猩树上穿越公园</div>
                </a>
            </li>--%>
        </ul>
        <div class="jpage" id="divPage"></div>
        <xmp id="svc_list_temp" style="display: none;">
            {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
            {{#if(d.rows[i].RECOMM_TYPE==1){ }}
                 <li>
                <a class="travelC" href="/wp_TravelScenicInfo.htm?scenicId={{d.rows[i].RECOMM_ID}}" target="_blank">
                    <img src="/UpLoad/scenic/{{d.rows[i].RECOMM_PIC_ADDR}} 240x198img.jpg" title="{{d.rows[i].RECOMM_NME}}" />
                    <div class="classicInfo" data-value="{{d.rows[i].RECOMM_ID}}">{{d.rows[i].RECOMM_NME}}</div>
                </a>
            </li> 
            {{#} }}
            {{#if(d.rows[i].RECOMM_TYPE==2){ }}
                 <li>
                <a class="travelC" href="/wp_TravelFoodInfo.htm?foodId={{d.rows[i].RECOMM_ID}}" target="_blank">
                    <img src="http://www.dijieke.com/UpLoad/nicefood/{{d.rows[i].RECOMM_PIC_ADDR}} 240x198img.jpg" title="{{d.rows[i].RECOMM_NME}}" />
                    <div class="classicInfo" data-value="{{d.rows[i].RECOMM_ID}}">{{d.rows[i].RECOMM_NME}}</div>
                </a>
            </li> 
            {{#} }}   
            {{#if(d.rows[i].RECOMM_TYPE==3){ }}
                 <li>
                <a class="travelC" href="/wp_TravelSpecialtyInfo.htm?specialtyId={{d.rows[i].RECOMM_ID}}" target="_blank">
                    <img src="/UpLoad/specialty/{{d.rows[i].RECOMM_PIC_ADDR}} 240x198img.jpg" title="{{d.rows[i].RECOMM_NME}}" />
                    <div class="classicInfo" data-value="{{d.rows[i].RECOMM_ID}}">{{d.rows[i].RECOMM_NME}}</div>
                </a>
            </li> 
            {{#} }} 
            {{#} }}
        </xmp>
    </div>
    <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    <!--start JS引用-->
    <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
    <script src="/jqPlugin/js/jBase.js"></script>
    <script src="/jqPlugin/js/jBPage.js"></script>
    <script src="/jqPlugin/js/laytpl.js"></script>
    <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
    <script src="/themes/wStyle1/js/comm/jsLayout.js"></script>
    <script src="/themes/wStyle1/js/comm/jsPagination.js"></script>
    <script src="/themes/wStyle1/js/comm/VerifyJs.js"></script>
    <!--end JS引用-->
    <script type="text/javascript">
        (function () {
            //if (IsNull(GetQueryStr("countryId"))) {
            //    $("#countryId").val("DF6723BE-A25C-4F77-BB49-A1662D3E6F2A");
            //    $("#cityId").val("AEF39D8E-D298-4AF1-AEC5-2B00D237F5F5");
            //    $("#destionId").val("");
            //}
           
            $("#s_condition").text(GetQueryStr("key"));
            $("#key").val(GetQueryStr("key"));
            $("#pageIndex").val(GetQueryStr("pIndex"));
            //btnDo("getScenicList");
            btnDo();
        })()
        function btnDo() {
            var opart = new jsonRow();
            opart = GetGtParam();
            opart = addStatistics(opart, "资讯搜索列表", "w0007");
            ajaxComm(opart);
        };
        //执行AJAX调用时获取参数
        function GetGtParam() {
            var pIndex = $("#pageIndex").val();
            if (IsNull(pIndex) || isNaN(pIndex)) {
                pIndex = 1;
            }
            var _jsParam = new jsonRow();
            _jsParam.AddCell("pageRows", "15");
            _jsParam.AddCell("pageNum", pIndex);
            _jsParam.AddCell("key", $.trim($("#key").val()));
            _jsParam.AddCell("ACTION", "init");
            return _jsParam;
        };

        function laySvcList(svcListData, rows) {
            $("#s_number").text(rows);
            var _html = $('#svc_list_temp').html();
            //$("#scenicList").html("");
            laytpl(_html).render(svcListData, function (render) {
                $("#travel_list").html(render);
            });
            var pIndex = $("#pageIndex").val();
            if (IsNull(pIndex) || isNaN(pIndex)) {
                pIndex = 1;
            }
            jsPage('divPage', rows, 15, pIndex, 'goPage');
        };
        //laySvcList();
        function goPage(pIndex) {
            var key=$.trim($("#key").val());
            window.location.href = "/wp_TravelSearch.htm?key=" + encodeURIComponent(key) + "&pIndex=" + pIndex;
        }
    </script>
</body>
</html>
